package com.sgzn.sgpay.model.request;

import com.sgzn.sgpay.model.request.able.SgsReqAble;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Pattern;

/**
 * 商户账户更新请求
 * @author zhongzhongyong
 * @version Id: SgsMchAccountUpdateRequest.java, v 0.1 2018/4/17 21:58 zhongzhongyong Exp $$
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString(callSuper = true)
public class SgsMchAccountUpdateRequest extends SgsBaseRequest implements SgsReqAble{

    /**
     * 商户ID
     */
    @Length(max = 32)
    @NotBlank(message = "商户ID不能为空")
    private String mchId;

    /**
     * 交易金额
     */
    @NotBlank(message = "交易金额不能为空")
    private String amount;

    /**
     * 交易标记【0：增加   1：减少】
     */
    @Pattern(regexp = "0|1")
    @NotBlank(message = "交易标记不能为空")
    private String tradeMark;

}
